<?php

    class WebModule extends HeheModule
    {
        public function init()
        {
            parent::init();
            
            $this->setImport(array(
                'hehe.modules.web.components.*',
            ));

            Yii::app()->setComponents(array(
                'errorHandler'=>array(
                    'errorAction'=>'/hehe/web/page/error',
                ),
            ));

        }                    

        public function beforeControllerAction($controller, $action)
        {
            if(parent::beforeControllerAction($controller, $action))
            {
                // this method is called before any module controller action is performed
                // you may place customized code here
                return true;
            }
            else
                return false;
        }
    }
